import {h} from "vue";
import {NIcon} from "naive-ui";
import {Icon} from "@iconify/vue";


/**
 * 渲染图标
 * @param icon
 * @param props
 */
export function renderIcon(icon: any, props = {size: 22}) {
    return () => h(NIcon, props, {default: () => h(Icon, {icon})})
}
